@import url(./vars.less);

header {
    width                : 100% !important;
    height               : 100vh !important;
    background-image     : url(../img/bg1.jpg);
    background-attachment: fixed;

    @media (max-width: @mobile-width) {
        background-image: url(../img/aa.jpg);
    }

    .container-flex {
        z-index: 1;
    }

    .content {
        width        : 500px;
        text-align   : center;
        border-radius: 50%;
        z-index      : 1;
        transform    : translateY(0px);
        transition   : transform 1s;

        &.move {
            transform: translateY(-999px)
        }

        .logo {
            width : 100px;
            height: 100px;
            margin: 0 auto;

            img {
                height       : 100%;
                border-radius: 50%;
                border       : 4px solid rgba(0, 0, 0, 0.2);
                transition   : transform ease-in-out 1s;
                object-fit   : cover;
                overflow     : hidden;

                &:hover {
                    transform: rotate(360deg);
                }
            }
        }

        .info {
            background-color: rgba(0, 0, 0, 0.3);
            color           : #fff;
            margin-top      : 20px;
            border-radius   : var(--border-radius);
            padding         : 14px;

            .quote {
                font-size    : 18px;
                margin-bottom: 18px;
            }

            .social {
                height: 30px;

                img {
                    height      : 100%;
                    margin-left : 10px;
                    margin-right: 10px;
                }
            }
        }

        @media (max-width: @mobile-width) {
            margin: 10px;
        }
    }

    .center-video {
        @media (max-width: @mobile-width) {
            display: none !important;
        }

        position: absolute;
        top     : 0;
        left    : 0;
        width   : 100%;
        height  : 100%;
        overflow: hidden;

        &::after {
            content : "";
            display : block;
            width   : 100%;
            height  : 100%;
            position: absolute;
            top     : 0;
            left    : 0;
        }

        video {
            width          : 100%;
            height         : 100%;
            display        : none;
            object-fit     : cover;
            object-position: 50% 50%;

        }

        .video-btn {
            position        : absolute;
            bottom          : 10px;
            right           : 20px;
            width           : 40px;
            height          : 40px;
            background-image: url(../img/icon/播放.png);
            background-size : cover;
            cursor          : pointer;
            z-index         : 10;
        }
    }
}

main {
    padding    : 15px;
    padding-top: 50px;

    .title {
        font-size     : 22px;
        font-weight   : 900;
        margin-bottom : 26px;
        margin-top    : 26px;
        padding-bottom: 2px;
        border-bottom : 1px solid rgba(0, 0, 0, 0.3);
    }

    .focus {
        width        : 100%;
        margin-bottom: 50px;



        .focus-list {
            display        : flex;
            justify-content: center;
            align-content  : stretch;

            .focus-item {
                text-align   : center;
                height       : 180px;
                border-radius: var(--border-radius);
                box-shadow   : 0 0 10px 0 rgba(0, 0, 0, 0.2);
                overflow     : hidden;
                position     : relative;
                transition   : 0.8s;

                &:nth-child(2) {
                    margin: 0 20px;
                }

                a {
                    width          : 100%;
                    height         : 100%;
                    color          : #fefefe !important;
                    display        : flex;
                    justify-content: center;
                    align-content  : center;
                    flex-wrap      : wrap;
                    flex           : 1;
                }



                .focus-bg {
                    display            : block;
                    position           : absolute;
                    top                : 0;
                    left               : 0;
                    width              : 100%;
                    height             : 100%;
                    background-size    : cover;
                    background-position: center;
                    transition         : 0.8s;

                    &::before {
                        content         : "";
                        display         : block;
                        position        : absolute;
                        top             : 0;
                        left            : 0;
                        width           : 100%;
                        height          : 100%;
                        background-color: rgba(0, 0, 0, 0.6);
                        opacity         : 0;
                    }
                }

                .focus-title {
                    width           : 100%;
                    font-size       : 24px;
                    margin-bottom   : 26px;
                    background-color: rgba(0, 0, 0, 0.9);
                    padding         : 10px;
                    transform       : translateX(-400px);
                    transition      : 0.8s;

                }

                .focus-desc {
                    font-style: italic;
                    transform : translateX(400px);
                    transition: 0.8s;
                    padding   : 10px;
                }

                &:hover {
                    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.8);


                    .focus-bg {
                        transform: scale(120%, 120%);

                        // filter   : brightness(20);
                        &::before {
                            opacity: 1;
                        }
                    }

                    .focus-title,
                    .focus-desc {
                        transform: translateX(0)
                    }

                }
            }
        }
    }

    .post {
        .post-list {
            width: 100%;

            .post-item {
                height       : 300px;
                margin-bottom: 40px;
                overflow     : hidden;
                border-radius: var(--border-radius);
                box-shadow   : 0 0 15px 0 rgba(0, 0, 0, 0.2);
                transition   : 0.3s;

                &.right {

                    .picture,
                    .text {
                        float     : right;
                        text-align: left;
                    }
                }

                .picture {
                    width     : 55%;
                    height    : 100%;
                    overflow  : hidden;
                    text-align: center;
                    float     : left;

                    a {
                        width              : 100%;
                        height             : 100%;
                        display            : block;
                        background-size    : cover;
                        background-position: center;
                        transition         : 0.8s;

                        &:hover {
                            transform: scale(1.2);
                        }
                    }
                }

                .text {
                    width          : 45%;
                    height         : 100%;
                    float          : left;
                    text-align     : right;
                    padding        : 18px;
                    display        : flex;
                    flex-direction : column;
                    justify-content: space-between;

                    .post-title {
                        font-size     : 24px;
                        padding-bottom: 14px;
                        font-weight   : 900;
                    }

                    .post-desc {
                        font-size: 16px;
                        flex     : 1;
                    }

                    .post-info {
                        color: #aaa;
                    }
                }

                &:hover {
                    box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.54);

                }
            }
        }
    }

    .previous {
        width          : 100%;
        display        : flex;
        justify-content: center;
        align-items    : center;
        padding-top    : 16px;

        .btn {
            display         : block;
            height          : 60px;
            line-height     : 60px;
            padding         : 0 30px;
            font-size       : 22px;
            border-radius   : 30px;
            border          : 1px solid rgba(0, 0, 0, 0.2);
            // box-shadow   : 0 0 15px 0 rgba(100, 71, 71, 0.2);

            &:hover {
                border    : 1px solid rgba(20, 200, 200, 0.9);
                box-shadow: 0 0 10px 2px rgba(20, 200, 200, 0.5);

            }
        }
    }

    @media (max-width: @mobile-width) {
        padding-top: 15px;

        .title {
            font-size    : 20px;
            margin-bottom: 15px;
            margin-top   : 15px;
        }

        .focus {
            .focus-list {
                flex-direction: column;

                .focus-item {
                    margin: 10px 0;
                    height: 160px;
                }

                & .focus-item:nth-child(2) {
                    margin: 0 !important;
                }
            }
        }

        .post {
            .post-list {
                .post-item {
                    height       : 200px;
                    margin-bottom: 20px;

                    .picture {
                        width: 25%;
                    }

                    .text {
                        width  : 75%;
                        padding: 10px;

                        .post-title {
                            font-size : 20px;
                            word-break: break-all;
                        }

                        .post-desc {
                            font-size: 14px;
                        }

                        .post-info {
                            font-size: 12px;
                        }
                    }
                }
            }
        }
    }
}